using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class rd_tempMap : EntityTypeConfiguration<rd_temp>
    {
        public rd_tempMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.ReferenceValue)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("rd_temp");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.ReferenceValue).HasColumnName("ReferenceValue");
            this.Property(t => t.Random).HasColumnName("Random");
        }
    }
}
